<?php
//update a record
$titre_page="Dictionnaire russe-français: modifier un enregistrement";
include("header.inc.php");
$id=$_GET['id'];
$foreign=$_GET['foreign'];
$local=$_GET['local'];
$type=$_GET['type'];
$date=$_GET['date'];

$sql = "
INSERT INTO `" .$latable ."` (
`id` ,
`foreign` ,
`local` ,
`type` ,
`date`
)
VALUES (
NULL , '" .$foreign ."', '" .$local ."', '" .$type."', NOW( )
)";

#echo $sql; exit;
$sqlQ=mysql_query($sql);
if(!$sqlQ) {
echo "Error SQL : " .$sql ."<br>" .mysql_error();
} else {
	echo "L'enregistrement a été inséré<br><a href=\"dictionnary.php\">Retour</a>";
	echo '<meta http-equiv="refresh" content="5;URL=dictionnary.php">';
}

include("footer.inc.php");
?>